<template>
    <div id="Input">
        <div class="header">
            <div class="return">
                <img src="../../assets/zfc-img/左箭头.png" alt="左箭头">
                <div class="ret" @click="goBack()"></div>
            </div>
            <img src="../../assets/zfc-img/搜索图标.png" alt="搜索图标">
                <input type="text" value="" placeholder="请输入商品关键词">
            <div class="search" >
                搜索
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name:"Input",
    data() {
        return {
           
        }
    },
    methods: {
            goBack() {
            window.history.back()
        },
        
    },
}
</script>
<style scoped>
#Input{
    position: fixed;
    z-index: 10;
   
}
.header{
    width: 7.2rem;
    height: 0.96rem;
    line-height: 0.96rem;
    background-color: #e53e42;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
}
.return{
    position: relative;
    z-index: 99;
}
.ret{
    width: 0.25rem;
    height: 0.4rem;
    /* background-color: #f2f2f2; */
    position: absolute;
    left: 0.2rem;
    top: 0.35rem;
    z-index: 100;
}
.return>img{
    width: 0.25rem;
    height: 0.4rem;
    margin: 0 0.2rem 0.13rem 0.2rem;
}
.header>input{
  width: 4.9rem;
  height: 0.5rem;
  line-height: 0.5rem;
  border-radius: 0.1rem;
  padding-left: 0.5rem;
  outline: none;
  font-size: 0.3rem;
}
input::placeholder{
  font-size: 0.24rem;
  color: #e53e42;
}
.header>img{
  position: absolute;
  top: 0.25rem;
  left: 0.3rem;
  width: 0.3rem;
  height: 0.3rem;
  margin-left: 0.5rem;
  padding-top: 0.1rem;
}
.search{
    font-size: 0.3rem;
    color: #fff;
    margin-left: 0.18rem;
}


</style>